<{include file="app/header.tpl"}>

<style>
body { background-color: #eee; }
</style>

<div class="orderList">
    <div class="tbbuy" id="orderList">
    <{if $orders|@count > 0 }>
     <{foreach from=$orders item="order"}>
        <div class="order">
            <p class="line">
                <span class="time">领取时间: <{"Y-m-d H:i:s"|@date:$order.created}></span>
            </p>
            <div class="cont">
                <img class="thumb" src="<{$order.thumbSrc}>">
                <p class="title"><{$order.shortTitle}></p>
                <p class="price"><{$order.countsGoods}> 件</p>
                <span class="link"><a href="/order/gift/<{$order.orderNo}>">红包详情</a></span>
            </div>
        </div>
    <{/foreach}>
    <{else}>
        <!-- 当没有订单数据时出现 start -->
        <div class="empty-order">
            没有红包订单
        </div>
        <!-- 当没有订单数据时出现 end -->
    <{/if}>
    </div>
</div>

<{include file="app/footer.tpl"}>
